<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/moment.2.24.0.js"></script>
    <script src="./lib/vue2.4.4.js"></script>
    <!-- `vue-resource` 依赖于 `vue` -->
    <script src="./lib/vue-resource1.3.4.js"></script>
</head>

<body>
    <div id="app">
        <mycom1></mycom1>
    </div>

    <script>
        Vue.component('mycom1', {
            // Component template should contain exactly one root element.
            // template: '<h3>这是使用 vue 创建的组件</h3><span>123</span>'
            template: '<div><h3>这是使用 vue 创建的组件</h3><span>123</span></div>'
        });
        var vm = new Vue({
            el: '#app',
            data: {
            },
            methods: {
            }
        });
    </script>
</body>

</html>